<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<div id="app">
    {{msg}}
    <hr> v-show :
    <h1 v-show="flag">{{msg}}</h1>
    <!-- <h1 v-show="true">{{msg1}}</h1> -->
    <h1 v-if="true">{{msg2}}</h1>
    <!-- <h3 v-html="">{{msg2}}</h3>
    <h3 v-html="msg2">{{msg2}}</h3> -->
    <!-- 频繁 -->
    <!-- 多个条件里面选择一个条件并 -->
    <hr> v-if条件判断:
    <div v-if="n>5">===n大于5</div>
    <div v-else-if="n==5">===n等于5</div>
    <div v-else="n<5">===n小于5</div>





</div>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.min.js"></script>
<script>
    const vu = new Vue({
            el: "#app",
            data: {
                flag: true, //显示布尔值不要加引号
                msg: 'hello vue',
                msg1: 'hello vue1',
                msg2: '<div>hello111</div>',
                n: 1


            }
        })
        // console.log(vu.title) //取数据
        // console.log(vu.title = '插值表达式111') //改数据
</script>






</body>

</html>